<style>
	th
	{
		text-align:center;
		padding: 3px 0px;
		color: #ffffff;
		background-color: #444444;
		border-top:solid 1px #888888;
		border-left:solid 1px #888888;
		border-right:solid 1px #222222;
		border-bottom:solid 1px #222222;
	}
	
	td
	{
		padding: 3px 5px;
	}
	
	.alt 
	{
		background-color: #cccccc;
	}
</style>
<h1>Friends</h1>
<table cellspacing="0" cellpadding="0">
	<tr>
		<th width="600px">Name</th>
		<th width="300px">Actions</th>
	</tr>
	<? $alt = false; ?>
	<? foreach($this->friends as $f): ?>
	<? $friend = format_friend($f); ?>
	<tr <?= $alt ? "class='alt'" : "" ?>>
		<td><?= $friend->name ?></td>
		<td style="text-align:center;">
			<a href="info.php?id=<?= $friend->id ?>">Info</a>
			&nbsp;-&nbsp;
			<a href="wall.php?id=<?= $friend->id ?>">Wall</a>
			&nbsp;-&nbsp;
			<a href="remove_friend.php?id=<?= $friend->id ?>">Remove</a>
		</td>
	</tr>
	<? $alt = !$alt ?>
	<? endforeach; ?>
</table>
<h1>Friend Requests</h1>
<table cellspacing="0" cellpadding="0">
	<tr>
		<th width="600px">Name</th>
		<th width="300px">Actions</th>
	</tr>
	<? $alt = false; ?>
	<? foreach($this->friend_requests as $r): ?>
	<? $friend_request = format_friend_request($r) ?>
	<tr <?= $alt ? "class='alt'" : "" ?>>
		<td><?= $friend_request->name ?></td>
		<td style="text-align:center;">
			<a href="info.php?id=<?= $friend_request->id ?>">Info</a>
			&nbsp;-&nbsp;
			<a href="wall.php?id=<?= $friend_request->id ?>">Wall</a>
			&nbsp;-&nbsp;
			<a href="approve_friend_request.php?id=<?= $friend_request->id ?>">Approve</a>
			&nbsp;-&nbsp;
			<a href="remove_friend_request.php?id=<?= $friend_request->id ?>">Deny</a>
		</td>
	</tr>
	<? $alt = !$alt ?>
	<? endforeach; ?>
</table>